export default ({ app }) => {
    const { router, store } = app
    router.beforeEach((to, from, next) => {
        store.commit('base/CHANGE_LOADING_STATE', true)
        next();
    });

    router.afterEach(route => {
        store.commit('base/CHANGE_LOADING_STATE', false)
    });
}